<?php
/* @var $this SiteController */
/* @var $model LoginForm */
/* @var $form CActiveForm  */

$this->pageTitle=Yii::app()->name . ' - Login';
$this->breadcrumbs=array(
	'Login',
);
?>

<div class="form " style="text-align: left">
<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'login-form',
	'enableClientValidation'=>true,
	'clientOptions'=>array(
		'validateOnSubmit'=>true,
	),
	'htmlOptions' => array(
		'class' => 'form-horizontal',
	)
)); ?>
    
    <div class="pull-left">
        <div class="control-group">    
            <div class="controls">
               <h2><?php echo Yii::t("msg", "0008");?></h2>
            </div>
        </div>

        <div class="control-group">
            <?php echo $form->label($model,'username',array('class' => 'control-label')); ?>
            <div class="controls">
                <?php echo $form->textField($model,'username', array('class' => 'span3'));?>
                <?php echo $form->error($model,'username',array('inputContainer' => 'span','errorCssClass' => 'errorMsg')) ?>
            </div>
        </div>

        <div class="control-group">
            <?php echo $form->label($model,'password',array('class' => 'control-label')); ?>
            <div class="controls">
                <?php echo $form->passwordField($model,'password', array('class' => 'span3'));?>
                <?php echo $form->error($model,'password',array('inputContainer' => 'span','errorCssClass' => 'errorMsg')) ?>
            </div>
        </div>

        <div class="control-group rememberMe">
            <div class="controls">
                <?php echo $form->checkbox($model,'rememberMe', array('class' => 'pull-left'));?>
                <?php echo $form->error($model,'rememberMe',array('inputContainer' => 'span','errorCssClass' => 'errorMsg')) ?>
            </div>
            <?php echo $form->label($model,'rememberMe',array('style' => 'padding-left:200px')); ?>
        </div>        
    </div>
    <div class="pull-left border-nav"></div>
    <div class="pull-left login-social-right">
        <div class="control-group">    
               <h2><?php echo Yii::t('main', 'login_by');?></h2>
        </div>
        <div>
            <?php
                $this->widget('ext.eauth.EAuthWidget', array('action' => 'user/login'));
            ?>
            <span class="auth-service google">
                <a href="<?php echo Yii::app()->createUrl('user/login',array('service' => 'google'))?>"><span class="social-signin facebook"></span></a>
            </span>
            <span class="auth-service facebook">
                <a href="<?php echo Yii::app()->createUrl('user/login',array('service' => 'facebook'))?>"><span class="social-signin google"></span></a>
            </span>
            <span class="auth-service twitter">
                <a href="<?php echo Yii::app()->createUrl('user/login',array('service' => 'twitter'))?>" class=""><span class="social-signin twitter"></span></a>
            </span>
        </div>
    </div>
    <div class="clearfix"></div>
    <div class="form-actions">
        <button type="submit" class="btn btn-primary"><?php echo Yii::t("lbl", "0011");?></button>
        <button type="reset" class="btn" ><?php echo Yii::t("lbl", "0002");?></button>
        <a href="<?php echo Yii::app()->createUrl('user/forgotPassword');?>" class="link_forgot"><?php echo Yii::t('lbl', '0015', array()); ?></a>
        <span class="delimiter">|</span><a href="<?php echo Yii::app()->createUrl('user/create');?>" class="link_forgot"><?php echo Yii::t('main', 'help.register', array()); ?></a>
    </div>
<?php $this->endWidget(); ?>
</div><!-- form -->
